﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BusinessLayer;
using RoleBasedSecurity.Generics;

namespace RoleBasedSecurity
{
    public partial class Register : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Button1_Click(object sender, EventArgs e)
        {            
            Members.AddUser(txtUsername.Value, txtMiddlename.Value, txtLastname.Value, txtGender.Value, txtEmail.Value, txtAlt_Email.Value, txtBusPhone.Value, txtMobPhone.Value, txtUsername.Value, txtPassword.Value, txtPassQuest.Value, txtPassAns.Value);
            Response.Redirect("~/Login.aspx");
        }
    }
}